package com.isoftstone.disk.role.repository;

import com.isoftstone.disk.mybatis.entity.PtRoleEntity;
import com.isoftstone.disk.mybatis.flexigrid.PagingBean;
import com.isoftstone.disk.mybatis.ztree.ZtreeEntity;
import com.isoftstone.disk.role.entity.SearchRoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleDao {
    List<PtRoleEntity> queryRoleListByPage(@Param("search") SearchRoleEntity search, @Param("paging") PagingBean paging);

    Integer queryRoleTotal(@Param("search")SearchRoleEntity search);

    List<ZtreeEntity> queryRoleZtreeList();

    List<String> queryRoleListByUserId(@Param("roleUuid") String roleUuid);

    void deleteMenuIdByRoleId(@Param("roleUuid")String roleId);

    void insertMenuRefRole(@Param("menuId")String menuId, @Param("roleUuid")String roleId);
}
